//
//  jijinAndGroupDetailModel.m
//  HaoDeCaiFu
//
//  Created by 张玉鹏 on 2017/11/22.
//  Copyright © 2017年 郑开宏. All rights reserved.
//

#import "jijinAndGroupDetailModel.h"

@implementation jijinAndGroupDetailModel
+ (NSDictionary *)objectClassInArray{
    return @{
             @"data" : @"jijinAndGroupDetailModel"
             };
}

+ (NSDictionary *)mj_replacedKeyFromPropertyName
{
    return @{
             // 模型属性: JSON key, MJExtension 会自动将 JSON 的 key 替换为你模型中需要的属性
             @"fundName":@"FundName",
             @"fundCode":@"FundCode"
            
             };
}

-(void)setMainCode:(NSString *)mainCode
{
    if ([mainCode isEqualToString:@"MM"]) {
        _mainCode=@"货币型";
    }
    else if ([mainCode isEqualToString:@"BOND"]) {
        _mainCode=@"债券型";
    }
    else if ([mainCode isEqualToString:@"MIXED"]) {
        _mainCode=@"混合型";
    }
    else if ([mainCode isEqualToString:@"CP"]) {
        _mainCode=@"保本型";
    }
    else if ([mainCode isEqualToString:@"EQ"]) {
        _mainCode=@"股票型";
    }
    else if ([mainCode isEqualToString:@"AI"]) {
        _mainCode=@"另类型";
    }
    else if ([mainCode isEqualToString:@"INDEX"]) {
        _mainCode=@"指数型";
    }
    else if ([mainCode isEqualToString:@"ST"]) {
        _mainCode=@"分级型";
    }
    else if ([mainCode isEqualToString:@"UNKNOW"]) {
        _mainCode=@"其他";
    }
}

@end
